﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cuckoo.TaskSchedule
{
	/// <summary>
	/// 待调度任务接口
	/// </summary>
	public interface ITask
	{
		/// <summary>
		/// 计划运行时间表达式
		/// </summary>
		string ScheduleExpress { get; set; }

		/// <summary>
		/// 任务名称
		/// </summary>
		string TaskName { get; set; }

		/// <summary>
		/// 执行任务
		/// </summary>
		void Work();

		/// <summary>
		/// 绑定计时器
		/// </summary>
		ITimer Timer { get; set; }
	}
}
